package org.study.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.study.order.feign.fallback.StockFeignFallBack;

import java.util.Map;

/**
 * @author heshaohua
 * @date 2024年07月31日 22:15:00
 */
@FeignClient(contextId = "stockServiceClient", name = "stock-service", fallback = StockFeignFallBack.class)
public interface StockServiceFeign {

    @PostMapping("/core/deduct")
    Object deduct(@RequestBody Map<String, String> param);


}
